import req from './req'

export function couponList(params) {
  return req.get('/discountcard/list', params)
}
export function deleteCoupon(id) {
  return req.delete(`/discountcard?card_id=${id}`)
}
export function getPageCode(params) {
  return  req.get('/wxa/codeunlimit',params)
}
export function updateStore(params) {
  return  req.post('/discountcard/updatestore',params)
}
export function getDetailList(params) {
  return  req.get('/discountcard/detail/list',params)
}
export function creatCoupon(params) {
  return  req.post('/discountcard',params)
}